//2009/08/18 21:00:14
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class HingedDoor
{
public:
    int numSwings(int init, int reduc)
    {
		int ret = 0;
		double red = reduc, ini = init;
		while(ini > 5.0)
		{
			ini /= red;
			ret ++;
		}
		return ret;
    }
};
